package com.rui.principles.demo05;
/**
 * @className    : Agent
 * @author       : [锐神NO.3]
 * @version      : [v1.0]
 * @createTime   : [2022/2/9 10:32]
 * @description  : [经纪人]
 */
 
public class Agent {

    private Star star;
    private Fans fans;
    private Company company;

    public void setStar(Star star) {
        this.star = star;
    }

    public void setFans(Fans fans) {
        this.fans = fans;
    }

    public void setCompany(Company company) {
        this.company = company;
    }

    /**
     * 和粉丝见面的方法
     */
    public void meeting() {
        System.out.println(star.getName() + "和粉丝" + fans.getName() + "见面了");
    }

    /**
     * 和公司洽谈的方法
     */
    public void business() {
        System.out.println(star.getName() + "和公司" + company.getName() + "洽谈了");
    }
}
